/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package heartnew;

/**
 *
 * @author Oho
 */
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import java.io.Serializable;

/**
 *
 * @author ThuyHuynh
 */
public class Card implements  Serializable{
    private short number;//tu 1 toi K
    private short rank;//co ro bich chuon
    public Card(){
        number=0;
        rank=0;
    }
    public Card(short so,short hang){
        this.number=so;
        this.rank=hang;
    }
    public Card(Card c){
        number=c.number;
        rank=c.rank;
    } 
    /**
     * @return the number
     */
    public short getNumber() {
        return number;
    }

    /**
     * @param number the number to set
     */
    public void setNumber(short number) {
        this.number = number;
    }

    /**
     * @return the rank
     */
    public short getRank() {
        return rank;
    }

    /**
     * @param rank the rank to set
     */
    public void setRank(short rank) {
        this.rank = rank;
    }
     
}
